package com.weitu.environmental.solidWaste.service.impl;

import com.weitu.environmental.solidWaste.entity.EntrustDispose;
import com.weitu.environmental.solidWaste.mapper.EntrustDisposeMapper;
import com.weitu.environmental.solidWaste.service.EntrustDisposeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-04-17
 */
@Service
public class EntrustDisposeServiceImpl implements EntrustDisposeService {
    private final EntrustDisposeMapper entrustDisposeMapper;

    @Autowired
    public EntrustDisposeServiceImpl(EntrustDisposeMapper entrustDisposeMapper) {
        this.entrustDisposeMapper = entrustDisposeMapper;
    }

    @Override
    public List<EntrustDispose> findByParam(Map paramMap) {
        return entrustDisposeMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return entrustDisposeMapper.findByParamCount(paramMap);
    }

    @Override
    public List<EntrustDispose> findAllBySwaId(String swaId) {
        return entrustDisposeMapper.findAllBySwaId(swaId);
    }

    @Override
    public List<EntrustDispose> findAllByParam(Map paramMap) {
        return entrustDisposeMapper.findAllByParam(paramMap);
    }

}
